package com.sali.rule;


public class ValueRule implements Rule {
    private static Rule rule;

    static {
        rule = new ValueRule();
    }

    @Override
    public Object invoke(Object value) {
        return value;
    }

    /**
     * 获取实例方法
     *
     * @return
     */
    public static Rule getInstance() {
        return rule;
    }

    public static void main(String[] args) {
        Object aa = ValueRule.getInstance().invoke("aa");
        System.out.println(aa);
    }
}
